//
//  NSString+KKSizeString.m
//  LawyerClient
//
//  Created by QianXiaoShu on 16/1/8.
//  Copyright (c) 2016年 QianXiaoShu. All rights reserved.
//

#import "NSString+KKSizeString.h"

@implementation NSString (KKSizeString)

-(CGSize)getSizeWithFont:(UIFont *)font width:(CGFloat)width height:(CGFloat)height{

    return [self boundingRectWithSize:CGSizeMake(width, height) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: font} context:nil].size;


}

@end
